home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 2000 Aladdin Enterprises. All rights reserved.
-
- This file is part of AFPL Ghostscript.
-
- AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
- distributor accepts any responsibility for the consequences of using it, or
- for whether it serves any particular purpose or works at all, unless he or
- she says so in writing. Refer to the Aladdin Free Public License (the
- "License") for full details.
-
- Every copy of AFPL Ghostscript must include a copy of the License, normally
- in a plain ASCII text file named PUBLIC. The License grants you the right
- to copy, modify and redistribute AFPL Ghostscript, but only under certain
- conditions described in the License. Among other things, the License
- requires that the copyright notice and this notice be preserved on all
- copies.
- */
-
- /*$Id: itoken.h,v 1.2 2000/09/19 19:00:46 lpd Exp $ */
- /* Interface to exported procedures in ztoken.c */
-
- #ifndef itoken_INCLUDED
- # define itoken_INCLUDED
-
- /*
- * Continue after handling a procedure stream refill or other callout
- * while reading tokens in the interpreter.
- */
- int ztokenexec_continue(P1(i_ctx_t *i_ctx_p));
-
- /*
- * Handle a scan_Comment or scan_DSC_Comment return from scan_token.
- */
- #ifndef scanner_state_DEFINED
- # define scanner_state_DEFINED
- typedef struct scanner_state_s scanner_state;
- #endif
- int ztoken_handle_comment(P8(i_ctx_t *i_ctx_p, const ref *fop,
- scanner_state *sstate, const ref *ptoken,
- int scan_code, bool save, bool push_file,
- op_proc_t cont));
-
- /*
- * Update the cached scanner_options in the context state after doing a
- * setuserparams. (We might move this procedure somewhere else eventually.)
- */
- int ztoken_scanner_options(P2(const ref *upref, int old_options));
-
- #endif /* itoken_INCLUDED */
-